package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {

    //根据动态id和类型，查询互动数据
    List<Comment> findComments(String movementId, Integer commentType,
                               Integer page, Integer pagesize);

    //保存互动数据
    Integer save(Comment comment);

    //删除互动数据，返回互动总数
    Integer delete(Long userId, Integer commentType, String movementId);
}
